package cn.justforchris.system.mapper;

import cn.justforchris.system.domain.Menu;
import cn.justforchris.system.query.MenuQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuMapper {
    void insertMenu(Menu menu);

    void updateMenu(Menu menu);

    void deleteMenu(Long id);

    void patchDelete(Long[] ids);

    Menu getMenuById(Long id);

    List<Menu> getAll();

    List<Menu> queryPage(MenuQuery queryPage);
}
